<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet"  th:href="${#request.getContextPath()+'/layui/css/layui.css'}">
</head>
<body style="background-image: url('https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fbpic.ooopic.com%2F14%2F90%2F55%2F21bOOOPICfe_1024.jpg%21%2Ffw%2F780%2Fquality%2F90%2Funsharp%2Ftrue%2Fcompress%2Ftrue&refer=http%3A%2F%2Fbpic.ooopic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1620282463&t=892c326e6f4195af08f4ad2bbdd07674');
    background-size: cover;
"
>
<center>   <h1 >登录</h1>
    <p th:text="${#request.getAttribute('msg')}" style="color: red"></p>
    <form th:action="${#request.getContextPath()+'/loginDate'}" method="post">
            <input type="text"  placeholder="请输入用户名" required lay-verify="required" autocomplete="off"  class="layui-input" name="name" style="width: 20%"><br>
            <input type="password" placeholder="请输入密码" required lay-verify="required" autocomplete="off" class="layui-input" name="password" style="width: 20%"><br>
        <button class="layui-btn layui-btn-primary layui-border-blue" type="submit">登录</button>
        <a class="layui-btn layui-btn-primary layui-border-blue" th:href="${#request.getContextPath()}+'/addhtml'">注册</a>
    </form>
</center>

</body>
</html>